{template 'common/header'}


<!-- 活动管理修改数据界面 -->

<style>
    .width-200{display:inline-block;width:200px;}
    .inline-block{display:inline-block;}
</style>
<form name="adform" method="post" action="{php echo aurl(6)}" class="form-horizontal"> 
    <input type="hidden" name="uid" value="{$_GET['uid']}">
    <ul class="nav nav-tabs" role="tablist">
        <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">基本信息</a></li>
        <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">扩展选项</a></li>
        <li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">招商二维码</a></li>
        <li role="presentation"><a href="#settings" aria-controls="settings" role="tab" data-toggle="tab">推荐返利</a></li>
    </ul>

    <div class="tab-content">
        <!-- 基本信息 -->
        <div role="tabpanel" class="tab-pane active" id="home"> 
                <div class="form-group">
                    <label class="col-sm-2 control-label">显示状态：</label>
                    <div class="col-sm-10">
                        <div class="btn-group" data-toggle="buttons">
                            <label class="btn btn-default active">
                                <input type="radio" name="state" value="1" checked> 审核中
                            </label>
                            <label class="btn btn-default">
                                <input type="radio" name="state" value="2"> 正常
                            </label>
                            <label class="btn btn-default">
                                <input type="radio" name="state" value="3"> 关闭
                            </label>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">所属类别：</label>
                    <div class="col-sm-10">
                        <select class="select" name="selectname">
                            {loop $sortname $item}
                            <option value="{$item['sortname']}">{$item['sortname']}&ensp;</option>
                            {/loop}
                            
                        </select>
                    </div>
                </div>


                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">内容标题：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="title" id="title" value="{php echo $row['title']}">
                    </div>
                </div>

                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">封面图片</label>
                        <div class="col-sm-10">
                            <span>{php echo tpl_form_field_image('image',$row['image'])}</span>
                        </div>
                </div>
                
                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">分享活动二维码：</label>
                    <div class="col-sm-10">
                        <select name="">
                            <option value="">关闭&nbsp;</option>
                            <option value="">打开&nbsp;</option>
                        </select> 
                    </div>
                </div>

                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">商品价格</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control width-200" name="price" id="price" onkeyup="value=value.replace(/[^\d]/g,'')" size="10" maxlength="5" value="{php echo $row['price']}">元
                        </div>
                </div>


                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">关联客服：</label>
                    <div class="col-sm-10">
                        <select name="lncooker">
                            {loop $incooker $item}
                            <option value="{$item['name']}">{$item['name']}&nbsp;</option>
                            {/loop}
                            
                        </select>
                    </div>
                </div>


                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">内容描述：</label>
                        <div class="col-sm-10"><span>{php echo tpl_ueditor('ueditor',$row['des'])}</span></div>
                </div>



                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">结束时间：</label>
                        <div class="col-sm-10">
                            <span class="width-200">{php echo _tpl_form_field_date('date',$row['time'])}</span>
                        </div>
                </div>
        </div>




        <!-- 扩展选项 -->
        <div role="tabpanel" class="tab-pane" id="profile">
           
                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">活动小标题：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="titid" name="titname" value="{php echo $row['ltitle']}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">页面设置：</label>
                    <div class="form-group">
                        <label for="inputEmail3" class="col-sm-2 control-label">红包排行榜显示个数：</label>
                        <div class="btn-group">
                            <select>
                                <option value="">4</option>
                                <option value="">3</option>
                                <option value="">2</option>
                                <option value="">1</option>
                                <option value="">不显示</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">活动策划人：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control"/>
                    </div>
                </div>

                 <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">机构地区：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control"/>
                    </div>
                </div>

                 <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">学校名称：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control"/>
                    </div>
                </div>

                 <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">收货人姓名：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control"/>
                    </div>
                </div>

                 <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">收货人联系电话：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control"/>
                    </div>
                </div>
                 <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">收货地址：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control"/>
                    </div>
                </div>
                 <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">货品：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control"/>
                    </div>
                </div>
                 <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">客服电话：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control"/>
                    </div>
                </div>
                 <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">背景音乐：</label>
                    <div class="col-sm-10">
                        <span>{php echo tpl_form_field_audio('audio',$row['music'])}</span>
                    </div>
                </div>
        </div>



        <!-- 招商二维码 -->
        <div role="tabpanel" class="tab-pane" id="messages">
                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">招商二维码：</label>
                    <div class="col-sm-10">
                       <div class="col-sm-10">
                            <span>{php echo tpl_form_field_image('imag',$row['imag'])}</span>
                        </div>
                    </div>
                </div>
        </div>
        <!-- 推荐返利 -->
        <div role="tabpanel" class="tab-pane" id="settings">
            推荐返利
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default" id="submit">提交保存</button>
        </div>
    </div>
</form>
<script type="text/javascript">
    /*button_click(sender,e) {
        button btn = (button)sender;
        messagesbox.show(btn.Text);*/
    }
    /*var options = $("#sortname option:selected");
    console.log(options.text());*/
</script>
{template 'common/footer'}